const express = require('express');
const server = express();
const router = express.Router();
router.get('/api/a',(req,res)=>{
    const info = {
        code:1,
        message:'我是来自北方的狼,去南方寻找心爱的花姑娘'

    }

    const {callback} = req.query;
    
    res.send(`${callback}(${JSON.stringify(info)})`)
})

server.use(router);


server.listen(8081,()=>{
    console.log('server is running at http://');
})